import service from '@/utils/request'

// @Tags Steward
// @Summary 创建Steward
// @Security ApiKeyAuth
// @accept application/json
// @Produce application/json
// @Param data body model.Steward true "创建Steward"
// @Success 200 {string} string "{"success":true,"data":{},"msg":"获取成功"}"
// @Router /steward/createSteward [post]
export const createSteward = (data) => {
  return service({
    url: '/steward/createSteward',
    method: 'post',
    data
  })
}

// @Tags Steward
// @Summary 删除Steward
// @Security ApiKeyAuth
// @accept application/json
// @Produce application/json
// @Param data body model.Steward true "删除Steward"
// @Success 200 {string} string "{"success":true,"data":{},"msg":"删除成功"}"
// @Router /steward/deleteSteward [delete]
export const deleteSteward = (data) => {
  return service({
    url: '/steward/deleteSteward',
    method: 'delete',
    data
  })
}

// @Tags Steward
// @Summary 删除Steward
// @Security ApiKeyAuth
// @accept application/json
// @Produce application/json
// @Param data body request.IdsReq true "批量删除Steward"
// @Success 200 {string} string "{"success":true,"data":{},"msg":"删除成功"}"
// @Router /steward/deleteSteward [delete]
export const deleteStewardByIds = (data) => {
  return service({
    url: '/steward/deleteStewardByIds',
    method: 'delete',
    data
  })
}

// @Tags Steward
// @Summary 更新Steward
// @Security ApiKeyAuth
// @accept application/json
// @Produce application/json
// @Param data body model.Steward true "更新Steward"
// @Success 200 {string} string "{"success":true,"data":{},"msg":"更新成功"}"
// @Router /steward/updateSteward [put]
export const updateSteward = (data) => {
  return service({
    url: '/steward/updateSteward',
    method: 'put',
    data
  })
}

// @Tags Steward
// @Summary 用id查询Steward
// @Security ApiKeyAuth
// @accept application/json
// @Produce application/json
// @Param data query model.Steward true "用id查询Steward"
// @Success 200 {string} string "{"success":true,"data":{},"msg":"查询成功"}"
// @Router /steward/findSteward [get]
export const findSteward = (params) => {
  return service({
    url: '/steward/findSteward',
    method: 'get',
    params
  })
}

// @Tags Steward
// @Summary 分页获取Steward列表
// @Security ApiKeyAuth
// @accept application/json
// @Produce application/json
// @Param data query request.PageInfo true "分页获取Steward列表"
// @Success 200 {string} string "{"success":true,"data":{},"msg":"获取成功"}"
// @Router /steward/getStewardListByPage [get]
export const getStewardListByPage = (params) => {
  return service({
    url: '/steward/getStewardListByPage',
    method: 'get',
    params
  })
}
